{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="id" value="{$data.id}"/>
    {:token()}
    <div class="layui-form-item">
        <label class="layui-form-label">区域名称</label>
        <div class="layui-input-block">
            <input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="区域名称"
                   class="layui-input" value="{$data.name}">
        </div>
    </div>


<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">区域总库存</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="num" autocomplete="off" placeholder="区域总库存" class="layui-input"-->
<!--                   value="{$data.num}">-->
<!--        </div>-->
<!--    </div>-->

    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="text" name="sort" autocomplete="off" placeholder="排序" class="layui-input"
                   value="{$data.sort}">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="radio" name="status" checked value="1" title="显示" {if $data.status==1}checked{/if}>
            <input type="radio" name="status" value="0" {if $data.status==0}checked{/if} title="下架">
        </div>
    </div>

    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
    layui.use('yznForm', function () {
        var yznForm = layui.yznForm;
        yznForm.bindevent($("form.layui-form"));
    });
</script>
{/block}